import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './containers/App'
import LoginContainer from './containers/LoginContainer'
import RegisterContainer from './containers/RegisterContainer'
import OrderContainer from './containers/OrderContainer'
import ProductsContainer from './containers/ProductsContainer'
import CartsContainer from './containers/CartsContainer'
import ProductForm from './containers/ProductForm'
import UserCenter from './containers/UserCenter'

export default <Route path="/" component={App}>
  <IndexRoute component={ProductsContainer}/>
  <Route path="/login" component={LoginContainer} />
  <Route path="/register" component={RegisterContainer} />
  <Route path="/orders" component={OrderContainer}/>
  <Route path="/carts" component={CartsContainer} />
  <Route path="/product/create" component={ProductForm}/>
  <Route path="/user/center" component={UserCenter}></Route>
</Route>
